package org.langqiao.network;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;

public class UrlDecoderTest {

	
	public static void main(String[] args) throws UnsupportedEncodingException {
		String decoderStr = URLDecoder.decode("%D5%C5%C8%FD%C0%EE%CB%C4","GBK");
		System.out.println("解码:"+decoderStr);
		String encoderStr = URLEncoder.encode("张三李四", "GBK");
		System.out.println("编码："+encoderStr);
	}

}
